﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MongoDB.Model
{
    /// <summary>
    /// 任务调度错误日志Model 
    /// </summary>
    public class Mongo_TaskErrorModel
    {
        /// <summary>
        /// Id
        /// </summary>
        [BsonId]
        public ObjectId ID { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 组名称
        /// </summary>

        public string GroupName { get; set;}

        /// <summary>
        /// 任务Url
        /// </summary>
        public string TaskUrl { get; set; }

        /// <summary>
        /// 请求方式
        /// </summary>
        public string Method { get; set; }

        /// <summary>
        /// 请求内容
        /// </summary>
        public string RequestBody { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 错误发生时间
        /// </summary>
        public DateTime CreateTime { get; set; }

    }
}
